package com.imooc.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import java.math.BigDecimal;

/**
 * 功能描述: <br>
 * (商品表单对应实体)
 *
 * @Author:Mr. xyb
 * @Date: 2018/5/18 17:39
 * @since: 1.8.0
 * @version: 1.0.0
 */
@Data
public class ProductForm {

    private String productId;

    /*名字*/

    @NotEmpty(message = "商品名称必填")
    private String productName;

    /*单价*/
    @NotEmpty(message = "商品单价必填")
    private BigDecimal productPrice;

    /*库存*/
    @NotEmpty(message = "商品库存必填")
    private Integer productStock;

    /*描述*/
    private String productDescription;

    /*小图*/
    private String productIcon;

    /*类目编号*/
    @NotEmpty(message = "商品类目必填")
    private Integer categoryType;

}
